package scoutobahn.highway;

import java.util.Collection;
/**
 * A specialised graph for highway networks.
 * @author mark and florian koch
 *
 */
public class HighwayGraph {
    private final Collection<Highway> highways;
    private final Collection<Town> towns;
    /**
     * Constructs a new HighwayGraph with the given Highways and the given Town.
     * @param newHighways The Highways
     * @param newTowns The Towns
     */
    public HighwayGraph(final Collection<Highway> newHighways,
            final Collection<Town> newTowns) {
        this.highways = newHighways;
        this.towns = newTowns;
    }
    /**
     * Returns all Town in this graph.
     * @return Collection of Towns
     */
    public Collection<Town> getTowns() {
        return this.towns;
    }
    /**
     * Returns all highways in this graph.
     * @return A Collection of highways
     */
    public Collection<Highway> getHighways() {
        return this.highways;
    }
}
